<template>
  <div>HomeHooks</div>
  <span>store中的name111 : {{ name }}</span>
  <br />
  <span>store中的count : {{ count }}</span>
  <br />
  <span>store中的Sname : {{ Sname }}</span>
</template>

<script>
import useMapStatetoSetup from '../hooks/useMapStatetoSetup'
export default {
  setup() {
    const { name, count } = useMapStatetoSetup(['name', 'count'])
    const { Sname } = useMapStatetoSetup({
      Sname: state => state.name,
    })
    return {
      name,
      count,
      Sname,
    }
  },
}
</script>

<style lang="scss" scoped></style>
